<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="${basePath}/static/css/bootstrap.min.css" rel="stylesheet">
<title>产品使用感知收集分析平台</title>
</head>
<body>
	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<div class="jumbotron text-center">
					<h1>产品使用感知收集分析平台</h1>
					<br />
					<p>欢迎使用,请登录!</p>
					<br />
					<div class="row">
						<div class="col-md-4 col-md-offset-4">
							<form action="${basePath}/user/login" method="post">
								<div class="input-group input-group-lg">
									<span class="input-group-addon"><span
										class="glyphicon glyphicon-user"></span></span> <input
										name="username" type="text" class="form-control"
										placeholder="用户名" aria-describedby="sizing-addon1">
								</div>
								<br />
								<div class="input-group input-group-lg">
									<span class="input-group-addon"><span
										class="glyphicon glyphicon-italic"></span></span> <input
										name="password" type="password" class="form-control"
										placeholder="密码" aria-describedby="sizing-addon1">
								</div>
								<br /> <a class="btn btn-lg btn-default" href="${basePath}/register">注册</a> <input
									type="submit" value="登录" class="btn btn-lg btn-default">
							</form>
							<c:if test="${not empty result}">
								<c:if test="${result.success}">
									<div id="loginInfo" class="alert alert-success">
										<a href="#" class="close" data-dismiss="alert">&times;</a> <strong>成功！</strong>${result.message}
									</div>
								</c:if>
								<c:if test="${not result.success}">
									<div id="loginInfo" class="alert alert-warning">
										<a href="#" class="close" data-dismiss="alert">&times;</a> <strong>失败！</strong>${result.message}
									</div>
								</c:if>
							</c:if>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="${basePath}/static/js/jquery-1.12.4.min.js"></script>
	<script src="${basePath}/static/js/bootstrap.min.js"></script>
	<!--[if lte IE 9]>
	<script src="${basePath}/static/js/respond.min.js"></script>
	<script src="${basePath}/static/js/html5shiv.js"></script>
	<![endif]-->
</body>
</html>